<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>

<%--@elvariable id="SPRING_SECURITY_LAST_EXCEPTION" type="java.lang.Throwable"--%>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title>Pardemo Login</title>

    <link type="text/css" rel="stylesheet" href="${contextPath}/static/css/default.css"/>
    <link type="text/css" rel="stylesheet" href="${contextPath}/static/css/button.css"/>

</head>


<body>

<c:if test="${not empty param.login_error}">
    <div class="loginError">
        Your login attempt was not successful, please try again.<br /><br />
        Reason: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />.
    </div>
</c:if>
<div class="outer-container">
    <div class="container">
        <!-- banner -->
        <div class="banner">
            <h1><a href="${contextPath}">Parademo</a></h1>
        </div>
<form id="loginForm" name="loginForm" action="<c:url value="/j_spring_security_check" />" method="post">
    <table>
        <tr>
            <td><label for="j_username">User:</label></td>
            <td><input id="j_username" name="j_username" value=""/></td>
        </tr>
        <tr>
            <td><label for="j_password">Password:</label></td>
            <td><input id="j_password" name="j_password" type="password" value=""/></td>
        </tr>
        <tr>
            <td colspan="2"><input type="checkbox" name="_spring_security_remember_me" id="rememberMe" checked="checked" /><label for="rememberMe">Remember my password for 1 hour</label></td>
        </tr>
        <tr>
            <td colspan="2"><input class="medium black button" type="submit" /></td>
        </tr>
    </table>
</form>
</div>
    </div>
</body>

</html>